<?php
$title = 'Драконы';
include_once '../inc/fnc.php';
if(isset($_GET['submit'])){
$gender = trim(htmlspecialchars($_POST['gender']));
    
 $db->query('UPDATE `users` SET `gender`=? WHERE `id`=?',array($gender,$user['id']));
 header('location:../profile');
}
?>
<div class="plate_nor mtb5 mlr10">
<div class="plate_nor_b">
<div class="plate_nor_l">
<div class="plate_nor_r">
<div class="plate_nor_rt">
<div class="plate_nor_rb">
<div class="plate_nor_lt">
<div class="plate_nor_lb cntr normal">
<div class="h1 major mt10"><span>Пол</span></div>
<form id="id7" method="post" action="./gender?submit"><div style="width:0px;height:0px;position:absolute;left:-100px;top:-100px;overflow:hidden"><input type="hidden" name="id7_hf_0" id="id7_hf_0"></div>

<input type="radio" class="vm wicket-id9" id="id8" name="gender" value="0" checked="checked"> Мужской<br>
<input type="radio" class="vm wicket-id9" id="ida" name="gender" value="1"> Женский

<div>
<span class="btn_g w100 mt10"><span class="btn_g_in"><input type="submit" value="Изменить"></span></span>
<div class="clr"></div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="hr mt15"></div>
<div class="ml10 mt5">
<img src="/images/back_16.png" width="16" height="16" alt=""> <a class="info" href="../cfg">Настройки</a>
</div>
<div class="hr mt10"></div>
<?
include_once '../inc/foot.php';